<?
$attributes = array('class' => 'email', 'id' => 'checknew');
echo form_open($this->_module_name.'/admin/dels', $attributes);
?>

<input type="hidden" name="page" value="<?=(int)$current_page?>">
<table class="admindata">
    <thead>
        <tr>
            <th colspan="8">
                <? if($this->acl->check('dels')){ ?> 
                <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('admin.deletes');?>">
                <? } ?>
                <?=lang('admin.total');?>
                <?=$num?>
                <?=lang('admin.records');?>
                <?=$pagination?>
            </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th>ID</th>
            <th><?=lang('adm.login_name');?></th>
            <th><?=lang('adm.email');?></th>
            <th><?=lang('adm.group');?></th>
            <th><?=lang('adm.dt_create');?></th>
            <th><?=lang('adm.last_login');?></th>
            <th class="publish" style="width: 90px;"><?=lang('admin.functions');?></th>
        </tr>
    </thead>
    <?
            $k=1;
			$i=1;
            foreach($list as $rs):?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$i?>"></td>
        <td><?=$rs->admin_id?></td>
        <td><?=$rs->login_name?></td>
        <td><?=$rs->email?></td>
        <td><?=$rs->group_name?></td>
        <td><?=$rs->dt_create?></td>
        <td><?=$rs->last_login;?></td>
        <td align="center"><?=icon_log('logs/listlogs/'.$rs->admin_id)?>
            <?=($this->acl->check('edit'))?icon_edit($_module_name.'/admin/edit/'.$rs->admin_id):'';?>
            <span id="publish<?=$rs->admin_id?>">
            <?=($this->acl->check('edit'))?icon_active("'admin'","'admin_id'",$rs->admin_id,$rs->bl_active):'';?>
            </span>
            <?=($this->acl->check('del'))?icon_del($_module_name.'/admin/del/'.$rs->admin_id.'/'.(int)$current_page):''?></td>
         
    </tr>
    <?
	$k=1-$k;
	$i = $i+1 ;
	endforeach;
	?>
    <tfoot>
        <td colspan="8">
            <? if($this->acl->check('dels')){ ?>
            <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="<?=lang('admin.deletes');?>">
            <? } ?>
            <?=lang('admin.total');?>
            <?=$num?>
            <?=lang('admin.records');?>
            <?=$pagination?>
        </td>
    </tfoot>
</table>
<?=form_close()?>
